<template>
  <div class="not-found-view">
    <main class="container">
      <div class="error-content">
        <h1>404</h1>
        <h2>Page Not Found</h2>
        <p>Oops! The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.</p>
        
        <div class="actions">
          <router-link to="/" class="btn">Go to Homepage</router-link>
          <button @click="goBack" class="btn secondary">Go Back</button>
        </div>
      </div>
    </main>
  </div>
</template>

<script>
export default {
  name: 'NotFoundView',
  
  methods: {
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>

<style scoped>
.not-found-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  padding: 2rem;
}

.container {
  max-width: 800px;
  text-align: center;
}

.error-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  font-size: 8rem;
  margin: 0;
  line-height: 1;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn {
  background: white;
  color: #2575fc;
}

.btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
</style>